/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="PACIENTESCONVENIOS")
public class PacientesConveniosProteu implements Serializable{

    @Id
    @Column(name="PCO_IN_CODIGO")
    private Integer pcoInCodigo;
    @Id
    @Column(name="PAC_ST_RG")
    private String pacStRg;
    @Id
    @Column(name="CON_ST_CODIGO")
    private String conStCodigo;
    @Id
    @Column(name="CON_ST_PLA_CODIGO")
    private String conStPlaCodigo;

    @Column(name="PAC_ST_CODIGO")
    private String pacStCodigo;
    @Column(name="PAC_ST_MATRICULA")
    private String pacStMatricula;
    @Column(name="PAC_ST_TIPO_PLANO")
    private String pacStTipoPlano;
    @Column(name="PAC_DT_VALIDADE_MATRICULA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date pacDtValidadeMatricula;
    @Column(name="PAC_ST_TITULAR_MATRICULA")
    private String pacStTitularMatricula;
    @Column(name="PAC_ST_EMPRESA_TITULAR")
    private String pacStEmpresaTitular;
    @Column(name="PAC_ST_FONE_EMPR")
    private String pacStFoneEmpr;
    @Column(name="TAC_ST_CODIGO")
    private String tacStCodigo;
    @Column(name="PAC_DT_ULT_PAGTO")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date pacDtUltPagto;
    @Column(name="UNI_IN_CODIGO")
    private Integer uniInCodigo;
    @Column(name="ESC_ST_CODIGO")
    private String escStCodigo;


    public String getConStCodigo() {
        return conStCodigo;
    }

    public void setConStCodigo(String conStCodigo) {
        this.conStCodigo = conStCodigo;
    }

    public String getConStPlaCodigo() {
        return conStPlaCodigo;
    }

    public void setConStPlaCodigo(String conStPlaCodigo) {
        this.conStPlaCodigo = conStPlaCodigo;
    }

    public String getEscStCodigo() {
        return escStCodigo;
    }

    public void setEscStCodigo(String escStCodigo) {
        this.escStCodigo = escStCodigo;
    }

    public Date getPacDtUltPagto() {
        return pacDtUltPagto;
    }

    public void setPacDtUltPagto(Date pacDtUltPagto) {
        this.pacDtUltPagto = pacDtUltPagto;
    }

    public Date getPacDtValidadeMatricula() {
        return pacDtValidadeMatricula;
    }

    public void setPacDtValidadeMatricula(Date pacDtValidadeMatricula) {
        this.pacDtValidadeMatricula = pacDtValidadeMatricula;
    }

    public String getPacStCodigo() {
        return pacStCodigo;
    }

    public void setPacStCodigo(String pacStCodigo) {
        this.pacStCodigo = pacStCodigo;
    }

    public String getPacStEmpresaTitular() {
        return pacStEmpresaTitular;
    }

    public void setPacStEmpresaTitular(String pacStEmpresaTitular) {
        this.pacStEmpresaTitular = pacStEmpresaTitular;
    }

    public String getPacStFoneEmpr() {
        return pacStFoneEmpr;
    }

    public void setPacStFoneEmpr(String pacStFoneEmpr) {
        this.pacStFoneEmpr = pacStFoneEmpr;
    }

    public String getPacStMatricula() {
        return pacStMatricula;
    }

    public void setPacStMatricula(String pacStMatricula) {
        this.pacStMatricula = pacStMatricula;
    }

    public String getPacStRg() {
        return pacStRg;
    }

    public void setPacStRg(String pacStRg) {
        this.pacStRg = pacStRg;
    }

    public String getPacStTipoPlano() {
        return pacStTipoPlano;
    }

    public void setPacStTipoPlano(String pacStTipoPlano) {
        this.pacStTipoPlano = pacStTipoPlano;
    }

    public String getPacStTitularMatricula() {
        return pacStTitularMatricula;
    }

    public void setPacStTitularMatricula(String pacStTitularMatricula) {
        this.pacStTitularMatricula = pacStTitularMatricula;
    }

    public Integer getPcoInCodigo() {
        return pcoInCodigo;
    }

    public void setPcoInCodigo(Integer pcoInCodigo) {
        this.pcoInCodigo = pcoInCodigo;
    }

    public String getTacStCodigo() {
        return tacStCodigo;
    }

    public void setTacStCodigo(String tacStCodigo) {
        this.tacStCodigo = tacStCodigo;
    }

    public Integer getUniInCodigo() {
        return uniInCodigo;
    }

    public void setUniInCodigo(Integer uniInCodigo) {
        this.uniInCodigo = uniInCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PacientesConveniosProteu other = (PacientesConveniosProteu) obj;
        if (this.pcoInCodigo != other.pcoInCodigo && (this.pcoInCodigo == null || !this.pcoInCodigo.equals(other.pcoInCodigo))) {
            return false;
        }
        if ((this.pacStRg == null) ? (other.pacStRg != null) : !this.pacStRg.equals(other.pacStRg)) {
            return false;
        }
        if ((this.conStCodigo == null) ? (other.conStCodigo != null) : !this.conStCodigo.equals(other.conStCodigo)) {
            return false;
        }
        if ((this.conStPlaCodigo == null) ? (other.conStPlaCodigo != null) : !this.conStPlaCodigo.equals(other.conStPlaCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 97 * hash + (this.pcoInCodigo != null ? this.pcoInCodigo.hashCode() : 0);
        hash = 97 * hash + (this.pacStRg != null ? this.pacStRg.hashCode() : 0);
        hash = 97 * hash + (this.conStCodigo != null ? this.conStCodigo.hashCode() : 0);
        hash = 97 * hash + (this.conStPlaCodigo != null ? this.conStPlaCodigo.hashCode() : 0);
        return hash;
    }


}
